package cn.com.ycm.simplefactory;


import cn.com.ycm.entity.SuvCar;
import cn.com.ycm.entity.VehicleCar;

public class CarFactoryTest {

    public static void main(String[] args){
        CarCreateFactory  ccf = new CarCreateFactory();
        VehicleCar vc = ccf.createCar("suv");
        vc.toCreateCar();

        vc = ccf.createCar2("cn.com.ycm.simplefactory.entity.Sedan");
        vc.toCreateCar();


        vc = ccf.createCar3(SuvCar.class);
        vc.toCreateCar();
    }
}
